from libs.pythonsmssdk.ronglian_sms_sdk import SmsSDK
from celery_tasks.main import app
accId = '8a216da877bef0fe0177c290dea1006e'
accToken = '6a68e7e52af94f6b95a8cde0e393331a'
appId = '8a216da877bef0fe0177c290dfb70075'
@app.task
def send_message(mobile,sms_code):
    sdk = SmsSDK(accId, accToken, appId)
    tid = '1'

    datas = (sms_code, '5')
    resp = sdk.sendMessage(tid, mobile, datas)
    print(resp)

